/*    */ package com.zimbra.cs.imap;
/*    */ 
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class AbstractListCommand
/*    */   extends ImapCommand
/*    */ {
/*    */   protected String referenceName;
/*    */   protected Set<String> mailboxNames;
/*    */   
/*    */   public AbstractListCommand(String referenceName, Set<String> mailboxNames)
/*    */   {
/* 29 */     this.referenceName = referenceName;
/* 30 */     this.mailboxNames = mailboxNames;
/*    */   }
/*    */   
/*    */   public String getReferenceName() {
/* 34 */     return this.referenceName;
/*    */   }
/*    */   
/*    */   public Set<String> getMailboxNames() {
/* 38 */     return this.mailboxNames;
/*    */   }
/*    */   
/*    */   public int hashCode()
/*    */   {
/* 43 */     int prime = 31;
/* 44 */     int result = 1;
/* 45 */     result = 31 * result + (this.mailboxNames == null ? 0 : this.mailboxNames.hashCode());
/* 46 */     result = 31 * result + (this.referenceName == null ? 0 : this.referenceName.hashCode());
/* 47 */     return result;
/*    */   }
/*    */   
/*    */   public boolean equals(Object obj)
/*    */   {
/* 52 */     if (this == obj) {
/* 53 */       return true;
/*    */     }
/* 55 */     if (obj == null) {
/* 56 */       return false;
/*    */     }
/* 58 */     if (getClass() != obj.getClass()) {
/* 59 */       return false;
/*    */     }
/* 61 */     AbstractListCommand other = (AbstractListCommand)obj;
/* 62 */     if (this.mailboxNames == null) {
/* 63 */       if (other.mailboxNames != null) {
/* 64 */         return false;
/*    */       }
/* 66 */     } else if (!this.mailboxNames.equals(other.mailboxNames)) {
/* 67 */       return false;
/*    */     }
/* 69 */     if (this.referenceName == null) {
/* 70 */       if (other.referenceName != null) {
/* 71 */         return false;
/*    */       }
/* 73 */     } else if (!this.referenceName.equals(other.referenceName)) {
/* 74 */       return false;
/*    */     }
/* 76 */     return true;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/imap/AbstractListCommand.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */